home *** CD-ROM | disk | FTP | other *** search
- Path: happy.firstnethou.com!usenet
- From: master@firstnethou.com (Randy Brewer)
- Newsgroups: comp.lang.c
- Subject: Re: Calculation in C: HELP
- Date: Fri, 02 Feb 1996 22:29:34 GMT
- Organization: FirstNet
- Message-ID: <4eu30t$4l0@happy.firstnethou.com>
- References: <4eddjd$mde@newsbf02.news.aol.com>
- NNTP-Posting-Host: ppp032.firstnethou.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- queenhead@aol.com (Queenhead) wrote:
-
- >Hi. I am trying to use the following calculation in a program and it is
- >not coming out right:
-
- >nextyr = rate * currentyr * ( 1 - (currentyr/1000000)
-
- >Is something wrong with that (in terms of C syntax)? I should be getting
- >234,000 if rate is 2.6 and currentyr is 100,000. My program is not
- >giving me that.
-
- >Thanks.
-
- Be sure that your data type is atleast LONG.
-
-